package com.zgw.his.design;

import org.eclipse.ui.IPageLayout;
import org.eclipse.ui.IPerspectiveFactory;
import org.eclipse.ui.IFolderLayout;

public class DesignPerspective implements IPerspectiveFactory {
	public static final String ID = "com.zgw.his.design.DesignPerspective";

	/**
	 * Creates the initial layout for a page.
	 */
	public void createInitialLayout(IPageLayout layout) {
		String editorArea = layout.getEditorArea();
		{
			IFolderLayout folderLayout = layout.createFolder("folder",
					IPageLayout.LEFT, 0.25f, IPageLayout.ID_EDITOR_AREA);
			folderLayout.addView("com.zgw.his.design.resource.ResourceTree");
		}
		addFastViews(layout);
		addViewShortcuts(layout);
		addPerspectiveShortcuts(layout);
	}

	/**
	 * Add fast views to the perspective.
	 */
	private void addFastViews(IPageLayout layout) {
	}

	/**
	 * Add view shortcuts to the perspective.
	 */
	private void addViewShortcuts(IPageLayout layout) {
	}

	/**
	 * Add perspective shortcuts to the perspective.
	 */
	private void addPerspectiveShortcuts(IPageLayout layout) {
	}

}
